<template>
  <div class="my-header">
    <span class="left">
      <slot name="a"></slot>
    </span>
    <span class="center">
      <slot name="b"></slot>
    </span>
    <span class="right">
      <slot name="c"></slot>
    </span>
  </div>
</template>
<style lang="scss" scoped>
.my-header {
  display: flex;
  height: 0.8rem;
  align-items: center;
  font-size: 0.32rem;
  padding: 0 0.32rem;
  color: #fff;
  .left {
    text-align: left;
  }
  span {
    width: 2rem;
  }
  .center {
    width: 3rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
  }
  div {
    flex: 1;
    text-align: center;
  }
}
</style>
